namespace java vn.vng.research.fsd.services.thrift

struct TUser {
	1: i32 uid,
	2: string username,
	3: string  email,
	4: string displayname,
	5: i32 education
}

struct TSchool {
	1: i32 id,
	2: string schoolname,
	3: i32 count
}

struct TResult {
	1: i64 searchID,
	2: list<TUser> userLs,
	3: list<TSchool> schoolLs,
	4: i32 totalHits
}

service SearchService {
	TResult search(1: i32 uid,2: string query,3: i32 hitsPerPage,4: i32 pageNumber),
	TResult facet(1: i32 uid,2: i64 searchid,3: string query,4: list<i32> schoolsid,5: i32 hitsPerPage,6: i32 pageNumber)
}

service IndexService {
	void fullReindex()
}

service ConfigutationService {
	void reloadDataConfigutation(),
	void reloadControllersConfigutaion(),
	void reloadSevicesConfigutaion()
}


